using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApplication2.Models
{
    [Serializable]
    [Table("Goods")]
    public class Goods
    {
        #region 表字段
        
        /// <summary>
        /// ID
        /// </summary>
        [DisplayName(@"ID")]
        public Guid? ID { get; set; }

        /// <summary>
        /// Name
        /// </summary>
        [DisplayName(@"Name")]
        [MaxLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// Stock
        /// </summary>
        [DisplayName(@"Stock")]
        [ConcurrencyCheck]    
        public int? Stock { get; set; }


        #endregion
    }
}